<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@ include file="/v1/h5/pages/public/head.jsp"%>

<!-- 我的二维码 -->
<div id="ldhMyQrcode">
	<div data-role="header" class="header_fixed">
    	<a data-transition="none" data-role="none" data-rel="back" class="back_btn">返回</a>
        <h1>二维码</h1>
    </div>
    <div data-role="content">
    	<div class="qrcode">
        	<div class="qrcode_top">
            	<div class="qrcode_pic">
            	<canvas id="Canvas"></canvas><i id="down_qrcode"></i>;
            	
                	<%-- <img src="${ctx}/v1/h5/img/qrcode.png"/> --%>
                </div>
                <p>扫二维码下载并注册，有红包送哦!</p>
            </div>
            <div class="qrcode_btm"><h3>云便利</h3><span>社区购物平台</span></div>
        </div>
    </div>
    <script type="text/javascript">
	seajs.use([ctx+'/v1/h5/js/custom/base/component-base.js?'+Date.parse(new Date()),ctx+'/v1/js/default/qrcode.js?'+Date.parse(new Date()),ctx+'/v1/js/default/jquery.qrcode.js?'+Date.parse(new Date())],function(a,b,c){
		
		a.init(a);	
		
		var q_text ="http://www.storeme.cn/mall/reg?u="+$ldh_base.getCookie("userId");
		
		//生成二维码
	    $("#down_qrcode").qrcode({
	          text: $ldh_base.utf16to8(q_text),
	          height: 120,
	          width: 120
	        });
	});
	 document.title="云便利-我的二维码";
    
    </script>
</div>


<%@ include file="/v1/h5/pages/public/footer.jsp"%>
